//
//  JXBusinessTabViewController.m
//  JXAddressApp
//
//  Created by huawei.zheng on 2018/10/27.
//  Copyright © 2018 zhhw_home. All rights reserved.
//

#import "JXBusinessTabViewController.h"
#import "QMUICommonDefines.h"
#import "JXBaseWKWebViewController.h"

@interface JXBusinessTabViewController ()

@end

@implementation JXBusinessTabViewController

+ (instancetype)defaultViewController
{
    JXBusinessTabViewController *vc = [[JXBusinessTabViewController alloc] init];
    vc.topOffset = IS_NOTCHED_SCREEN?40:20;
    
    return vc;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    JXBaseWKWebViewController *newsVC = [JXBaseWKWebViewController new];
    JXBaseWKWebViewController   *workVC = [JXBaseWKWebViewController new];
    
    newsVC.webUrl = [NSURL URLWithString:@"http://www.wegis.net/demo/view/mobile/dist/index.html#/govregion/-1"];
    workVC.webUrl = [NSURL URLWithString:@"http://www.wegis.net/demo/view/mobile/dist/index.html#/region/1"];
    
    [self initWithTitleArray:@[@"民政职能", @"行政区划"] vcArray:@[newsVC, workVC] blockNormalColor:[UIColor lightGrayColor] blockSelectedColor:[UIColor redColor] currentPage:0];
    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [self.navigationController setNavigationBarHidden:YES animated:YES];
}


@end
